projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca05f19
)
(strwidth): Fix previous change.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 18 May 1997 20:18:16 +0000
(20:18 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 18 May 1997 20:18:16 +0000
(20:18 +0000)
src/charset.c
patch
|
blob
|
history
diff --git
a/src/charset.c
b/src/charset.c
index e88d1839b20bc0da3ae6f271cb7759c50f00a609..8518cc8829d0ca3dc59d9dbaac4cd8d11ca36650 100644
(file)
--- a/
src/charset.c
+++ b/
src/charset.c
@@
-811,7
+811,10
@@
strwidth (str, len)
int c = STRING_CHAR (str, endp - str);
/* Get the way the display table would display it. */
- disp = DISP_CHAR_VECTOR (dp, c);
+ if (dp)
+ disp = DISP_CHAR_VECTOR (dp, c);
+ else
+ disp = Qnil;
if (VECTORP (disp))
thiswidth = XVECTOR (disp)->size;